﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;

namespace Netfraction.Hub.Scripting
{
    public class Core
    {
        public static string GetScriptsDirectory()
        {
            Assembly curAssembly = Assembly.GetEntryAssembly();
            string curCompany = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Global.GetAssemblyCompany(curAssembly));
            string _applicationDataDir = Path.Combine(curCompany, Global.GetProductName(curAssembly));

            return Path.Combine(_applicationDataDir, "Scripts");
        }

    }
}
